<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});

Route::get('/', 'Web\HomeController@home');
Route::get('/login-status', 'Web\HomeController@loginStatus');

Route::get('/web', 'Web\HomeController@home');
Route::get('/test', 'Web\HomeController@test');
Route::get('/api/web/dashboard', 'Web\HomeController@dashboard');   //数据统计模块
Route::get('/api/web/sendPack', 'Web\HomeController@testSendPack');
Route::get('/api/web/wechat', 'Web\HomeController@testWechat');

Route::match(['get', 'post'], '/api/web/activity/add', 'Web\Activity\ActivityController@activity');
Route::get('/api/web/activity/list', 'Web\Activity\ActivityController@activities');

Route::get('/api/web/activity/statistics', 'Web\Activity\ActivityController@ActivityStatistics');   //新添加 活动统计
Route::get('/api/web/activity/dashboard', 'Web\Activity\ActivityController@getUserActivityDashboardById');//新添加 活动详情报表

Route::get('/api/web/activity/createtmp','Web\Activity\ActivityController@createTemplate');

Route::get('/api/web/activity/index', 'Web\Activity\ActivityController@index');
Route::get('/api/web/activity/quiz', 'Web\Activity\ActivityController@quiz');//新添加
Route::get('/api/web/activity/shaking', 'Web\Activity\ActivityController@shaking');//新添加
Route::get('/api/web/activity/roulette', 'Web\Activity\ActivityController@roulette');//新添加
Route::get('/api/web/activity/scratch', 'Web\Activity\ActivityController@scratch');//新添加
Route::get('/api/web/activity/golden-eggs', 'Web\Activity\ActivityController@goldenEgg');//新添加
Route::get('/api/web/activity/lucky-bag', 'Web\Activity\ActivityController@luckyBag');//新添加  @aut mzm
Route::get('/api/web/activity/open-red-packet', 'Web\Activity\ActivityController@openRedPacket');//新添加 @aut mzm
Route::get('/api/web/activity/gifts', 'Web\Activity\ActivityController@gifts');//新添加 @aut mzm
Route::get('/api/web/activity/chopHand', 'Web\Activity\ActivityController@chopHand');//新添加 @aut mzm
Route::get('/api/web/activity/exponent', 'Web\Activity\ActivityController@exponent');//新添加 @aut mzm
Route::get('/api/web/activity/takebook', 'Web\Activity\ActivityController@takebook');//新添加 @aut mzm
Route::get('/api/web/activity/alasd', 'Web\Activity\ActivityController@alasd');//新添加 @aut mzm
Route::get('/api/web/activity/sudoku', 'Web\Activity\ActivityController@sudoku');//新添加 @aut mzm
Route::get('/api/web/activity/balance', 'Web\Activity\ActivityController@balance');//新添加 @aut mzm
Route::get('/api/web/activity/lottory-box', 'Web\Activity\ActivityController@lottoryBox');//新添加 @aut mzm
Route::get('/api/web/activity/team-pk', 'Web\Activity\ActivityController@teamPk');//新添加 @aut mzm
Route::get('/api/web/activity/money-tree', 'Web\Activity\ActivityController@moneyTree');//新添加 @aut mzm
Route::get('/api/web/activity/iantern', 'Web\Activity\ActivityController@iantern');//新添加 @aut mzm
Route::get('/api/web/activity/catch-guost', 'Web\Activity\ActivityController@catchGuost');//新添加 @aut mzm
Route::get('/api/web/activity/climb-thegreatwall', 'Web\Activity\ActivityController@climbThegreatwall');//新添加 @aut mzm
Route::get('/api/web/activity/collect-sticker', 'Web\Activity\ActivityController@collectSticker');//新添加 @aut mzm
Route::get('/api/web/activity/eat-chicken', 'Web\Activity\ActivityController@eatChicken');//新添加 @aut mzm
Route::get('/api/web/activity/invite-bonus', 'Web\Activity\ActivityController@inviteBonus');//新添加 @aut mzm
Route::get('/api/web/activity/caizhangdie', 'Web\Activity\ActivityController@caizhangdie');//新添加 @aut mzm
Route::get('/api/web/activity/chaikuaidi', 'Web\Activity\ActivityController@chaikuaidi');//新添加 @aut mzm
Route::get('/api/web/activity/dadishu', 'Web\Activity\ActivityController@dadishu');//新添加 @aut mzm
Route::get('/api/web/activity/check-in', 'Web\Activity\ActivityController@checkIn');//新添加 @aut mzm
Route::get('/api/web/activity/prize-code', 'Web\Activity\ActivityController@prizeCode');//新添加 @aut mzm
Route::get('/api/web/activity/plane-wars', 'Web\Activity\ActivityController@planeWars');//新添加 @aut mzm
Route::patch('/api/web/activity/weight', 'Web\Activity\ActivityController@changeWeight');//修改活动权重
Route::get('/api/web/modelRule', 'Web\Activity\ActivityController@getActivityRule');
Route::match(['get', 'post'], '/api/web/activity/edit', 'Web\Activity\ActivityController@edit');
Route::match(['get', 'post'], '/api/web/activity/delete', 'Web\Activity\ActivityController@delete');
Route::get('/api/web/activity/prizeStock', 'Web\Activity\ActivityController@getActivityPrizeStock');
Route::get('/api/web/activity/qrcode', 'Web\Activity\ActivityController@getActivityQrcode');
Route::get('/api/web/activity/activities-reports', 'Web\Activity\ActivityController@getUserActivityReports');
Route::get('/api/web/activity/summary-total', 'Web\Activity\ActivityController@summaryTotal');
Route::match(['get', 'post'],'/api/web/activity/votedp', 'Web\Activity\ActivityController@voteDP');
Route::match(['get', 'post'],'/api/web/activity/testdp', 'Web\Activity\ActivityController@testDP');
Route::get('/api/web/activity/ajax', 'Web\Activity\ActivityController@getModelActivityList');
/*
Route::get('/api/web/activity/app_scene', 'Activity\WebController@appScene');
Route::get('/api/web/activity/competition', 'Activity\WebController@appSceneaddCompetition');
Route::get('/api/web/activity/competition/option', 'Activity\WebController@appSceneaddCompetitionOption');
*/

Route::get('/api/web/activity/vote/group', 'Vote\WebController@addVoteGroup');

Route::match(['get', 'post'], '/api/web/vote/candidate', 'Web\VoteCandidate\VoteCandidateController@candidate');
Route::match(['get', 'post'], '/api/web/vote/group', 'Web\VoteCandidate\VoteCandidateController@group');
Route::match(['get', 'post'], '/api/web/vote/delete', 'Web\VoteCandidate\VoteCandidateController@delete');
Route::match(['get', 'post'], '/api/web/vote/getRecord', 'Web\VoteCandidate\VoteCandidateController@getRecord');
Route::match(['get', 'post'], '/api/web/vote/getValidation', 'Web\VoteCandidate\VoteCandidateController@getRecordData');
Route::match(['get', 'post'], '/api/web/vote/showRecordViews', 'Web\VoteCandidate\VoteCandidateController@showRecordViews');
Route::match(['get', 'post'], '/api/web/vote/voteRecord', 'Web\VoteCandidate\VoteCandidateController@getVoteRecords');
Route::match(['get', 'post'], '/api/web/vote/getValidationData', 'Web\VoteCandidate\VoteCandidateController@downValidationData');
Route::match(['get', 'post'], '/api/web/vote/intervene', 'Web\VoteCandidate\VoteCandidateController@intervene');
Route::match(['get', 'post', 'patch'], '/api/web/vote/shelves-edit', 'Web\VoteCandidate\VoteCandidateController@shelvesEdit');

Route::get('/api/web/activityRecords/index', 'Web\ActivityRecords\ActivityRecordsController@index');
Route::get('/api/web/activityRecords/export', 'Web\ActivityRecords\ActivityRecordsController@export');
Route::get('/api/web/activityRecords/list', 'Web\ActivityRecords\ActivityRecordsController@activityRecords');
Route::post('/api/web/activityRecords/duijiang', 'Web\ActivityRecords\ActivityRecordsController@activityUpdate');


Route::get('/api/web/login', 'Web\Auth\AuthController@login');

/*
Route::get('/api/web/activityPoint/index', 'Web\ActivityPoint\ActivityPointController@index');
Route::post('/api/web/activityPoint/edit', 'Web\ActivityPoint\ActivityPointController@editActivityPoints');
Route::match(['get', 'post'], '/api/web/activityPoint/list', 'Web\ActivityPoint\ActivityPointController@getActivityPointsList');
Route::match(['get', 'post'], '/api/web/activityPoint/add', 'Web\ActivityPoint\ActivityPointController@addActivityPoints');
Route::match(['get', 'post'], '/api/web/activityPoint/delete', 'Web\ActivityPoint\ActivityPointController@delActivityPoints');
*/

/*
Route::get('/api/web/activityDelivery/index', 'Web\ActivityDelivery\ActivityDeliveryController@index');
Route::get('/api/web/activityDelivery/list', 'Web\ActivityDelivery\ActivityDeliveryController@activityDeliveryList');
Route::match(['get', 'post'], '/api/web/activityDelivery/add', 'Web\ActivityDelivery\ActivityDeliveryController@create');
Route::match(['get', 'post'], '/api/web/activityDelivery/edit', 'Web\ActivityDelivery\ActivityDeliveryController@edit');
Route::match(['get', 'post'], '/api/web/activityDelivery/editActivityDelivery', 'Web\ActivityDelivery\ActivityDeliveryController@editActivityDelivery');
Route::match(['get', 'post'], '/api/web/activityDelivery/delete', 'Web\ActivityDelivery\ActivityDeliveryController@delete');
Route::match(['get', 'post'], '/api/web/activityDelivery/modify', 'Web\ActivityDelivery\ActivityDeliveryController@modify');
Route::match(['get', 'post'], '/api/web/activityDelivery/show', 'Web\ActivityDelivery\ActivityDeliveryController@showDeliveries');
*/

/*
Route::get('/api/web/activityTrigger/index', 'Web\ActivityTrigger\ActivityTriggerController@index');
Route::get('/api/web/activityTrigger/list', 'Web\ActivityTrigger\ActivityTriggerController@getActivityTriggerList');
Route::post('/api/web/activityTrigger/create', 'Web\ActivityTrigger\ActivityTriggerController@create');
Route::match(['get', 'post'], '/api/web/activityTrigger/edit', 'Web\ActivityTrigger\ActivityTriggerController@edit');
Route::match(['get', 'post'], '/api/web/activityTrigger/editActivityTrigger', 'Web\ActivityTrigger\ActivityTriggerController@editActivityTrigger');
Route::match(['get', 'post'], '/api/web/activityTrigger/delete', 'Web\ActivityTrigger\ActivityTriggerController@delete');
Route::match(['get', 'post'], '/api/web/activityTrigger/add', 'Web\ActivityTrigger\ActivityTriggerController@add');
Route::match(['get', 'post'], '/api/web/activityTrigger/modify', 'Web\ActivityTrigger\ActivityTriggerController@modify');
*/

Route::post('tmp/upload', 'Storage\StorageController@tmpUpload');

/*
Route::group(['prefix' => 'api', 'namespace' => 'Api'], function () {
	Route::group(['prefix' => 'prize', 'namespace' => 'Prize'], function () {
		Route::get('index', 'PrizeController@index');
		Route::get('query', 'PrizeController@query');
		Route::match(['get', 'post'], 'create', 'PrizeController@create');
		Route::post('modify', 'PrizeController@modify');
		Route::post('delete', 'PrizeController@delete');
		Route::get('settle', 'PrizeController@settle');
		Route::match(['get', 'post'], 'upload', 'PrizeController@upload');
	});
	Route::group(['prefix' => 'prizeType', 'namespace' => 'PrizeType'], function () {
		Route::get('prizeType', 'PrizeTypeController@prizeType');
	});
	Route::group(['prefix' => 'goods', 'namespace' => 'Goods'], function () {
		Route::get('goods', 'GoodsController@goods');
	});
	Route::group(['prefix' => 'activity', 'namespace' => 'Activity'], function () {
		Route::match(['get', 'post'], 'activity', 'ActivityController@activity');
		Route::post('create', 'ActivityController@create');
		Route::post('modify', 'ActivityController@modify');
		Route::post('delete', 'ActivityController@delete');
		Route::get('settle', 'ActivityController@settle');
		Route::post('destribute', 'ActivityController@destribute');
	});

	Route::group(['prefix' => 'app', 'namespace' => 'App'], function () {

		//供app调用埋点投放的活动信息及规则
		Route::get('activityInfo/{id}', 'ActivityController@ActivityInfoAction');
		Route::get('user/{uid}', 'UserController@InfoAction');


//		Route::get('web/prizeCodeDetail', function () {
//			return view('web.prize.addCodeDetail');
//		});

	});
});
**/

//奖品管理页面

Route::get('/api/web/prize', 'Prize\WebController@aliasIndex');

/*
Route::get('/api/web/payment/payment/check', 'PrizePayment\PaymentController@check');
Route::post('/api/web/payment/payment/delete', 'PrizePayment\PaymentController@delete');
Route::post('/api/web/payment/payment/revoke', 'PrizePayment\PaymentController@revoke');
Route::get('/api/web/payment/payment/poll', 'PrizePayment\PaymentController@poll');

Route::get('/api/web/payment/alipay/pay', 'PrizePayment\AlipayController@pay');
Route::get('/api/web/payment/wechat/pay', 'PrizePayment\WeChatController@pay');
*/

Route::get('/api/web/prize/sponsor', 'Prize\Sponsor\WebController@create');

Route::get('/api/web/prize/coupon', 'Prize\WebController@addCoupon');
Route::get('/api/web/prize/entity', 'Prize\WebController@addEntity');
Route::get('/api/web/prize/wechat', 'Prize\WebController@addWechatRedPack');
Route::get('/api/web/prize/alipay', 'Prize\WebController@addAliPayRedPack');
Route::get('/api/web/prize/buy', 'Prize\WebController@addNoBuy');
Route::get('/api/web/prize/index', 'Prize\WebController@show');
Route::get('/api/web/prize/create', 'Prize\WebController@create');

Route::get('/api/web/prize/query', 'Web\Prize\PrizeController@query');
Route::get('/api/web/prize/queryPrizes', 'Web\Prize\PrizeController@queryPrizes');
Route::post('/api/web/prize/create', 'Web\Prize\PrizeController@create');
Route::match(['get', 'post'], '/api/web/prize/modify', 'Web\Prize\PrizeController@modify');
Route::post('/api/web/prize/entry', 'Web\Prize\PrizeController@entry');
Route::post('/api/web/prize/delivery', 'Web\Prize\PrizeController@delivery');
Route::post('/api/web/prize/delete', 'Web\Prize\PrizeController@delete');
Route::post('/api/web/prize/checkName/{prize_id}', 'Web\Prize\PrizeController@checkName');
Route::post('/api/web/prize/upload', 'Web\Prize\PrizeController@upload');
Route::get('/api/web/prize/detail', 'Web\Prize\PrizeController@detail');
Route::get('/api/web/prize/availablePrize', 'Web\Prize\PrizeController@availablePrize');
Route::get('/api/web/prize/wxpay', 'Web\Prize\PrizeController@wxPay');
Route::get('/api/web/prize/import-voucher-code/{id}', 'Web\Prize\PrizeController@showImportVoucherCodePage');

Route::get('/api/web/prizeRechargeRecords/index', 'Web\PrizeRechargeRecords\PrizePaymentController@index');
Route::get('/api/web/prizeRechargeRecords/list', 'Web\PrizeRechargeRecords\PrizePaymentController@prizePaymentList');

Route::get('/api/web/enroll/list', 'Web\Enroll\EnrollController@enrollList');
Route::get('/api/web/enroll/delete', 'Web\Enroll\EnrollController@enrolldelete');
Route::match(['get','post'],'/api/web/enroll/export', 'Web\Enroll\EnrollController@export');
Route::match(['get','post'],'/api/web/enroll/edit', 'Web\Enroll\EnrollController@edit');
Route::match(['get','post'],'/api/web/enroll/editbatch', 'Web\Enroll\EnrollController@editBatch');


//---------------------------------------gq    start------------------------------------------------

Route::get('/api/web/resources/all', 'Goods\GoodsController@index');//购买奖品
Route::get('/api/web/goods/query', 'Goods\GoodsController@query');//查询奖品
Route::post('/api/web/goods/buy', 'Goods\GoodsController@buy');//购买奖品
Route::get('/api/web/prize/center', 'Prize\Center\IndexController@index');//兑奖中心
Route::get('/api/web/prize_center/query', 'Prize\Center\IndexController@query');//查询兑奖






//---------------------------------------gq     end------------------------------------------------


//新建投放页面
//Route::get('web/newPoint', 'Point\WebController@create');

//新建触发活动页面
//Route::get('web/votedatalist', function () {
//    return view('web.activity.votedatalist');
//});

/*
Route::get('web/newactivityTouch', function () {
	return view('web.activityTouch.newActivityTouch');
});
*/

Route::get('web/configurations/wechat', 'Configuration\Wechat\WebController@form');
Route::get('web/test/wechat', 'Activity\WechatController@toActivityPage')->middleware('wechat.oauth');




/** 暂时*/
Route::get('/api/web-api/activity/lists','Web\ActivityController@');
Route::get('/api/web-api/activity/statistics-list', 'Web\Activity\ActivityController@activities');  //新添加 活动统计数据接口
Route::get('/api/web-api/activity/dashboard', 'Web\Activity\ActivityController@');  //新添加 数据统计接口

Route::post('copy/{id}', 'Activity\WebApiController@copy');
Route::get('/api/web-api/activities/{id}', 'Activity\ManagementController@show');

Route::get('/api/web-api/activities/{id}/quizzes', 'Quiz\ApiController@quizzes');
Route::post('/api/web-api/activity/quizzes', 'Quiz\ActivityController@store');
Route::post('/api/web-api/activities/quizzes', 'Quiz\ActivityController@store');
Route::patch('/api/web-api/activities/{id}/quizzes', 'Quiz\ActivityController@update');
Route::get('/api/web-api/activities/{id}/quizzes/full-report', 'Quiz\ReportController@full');
Route::post('/api/web-api/activities/{activityId}/quizzes/category-report', 'Quiz\ReportController@categoried');
Route::get('/api/web-api/activities/{id}/papers', 'Quiz\Paper\ApiController@many');
Route::get('/api/web-api/activities/{id}/all-quizzes', 'Quiz\ApiController@byActivity');
Route::get('/api/web-api/activities/{id}/quizzes/download-pdf-report', 'Quiz\ReportController@dumpAsPdf');
Route::get('/api/web-api/activities/{id}/quizzes/fill-blank', 'Quiz\ReportController@dumpFillBlankAsXlsx');

Route::get('/api/web-api/quizzes/not-related', 'Quiz\ActivityController@notRelated');
Route::post('/api/web-api/quizzes/{id}/options', 'Quiz\Option\ApiController@store');
Route::post('/api/web-api/quizzes/{id}/multiple-options', 'Quiz\Option\ApiController@multipleUpdateOptions');
Route::get('/api/web-api/quizzes/{id}/options', 'Quiz\Option\ApiController@many');
Route::post('/api/web-api/quizzes', 'Quiz\ApiController@store');
Route::get('/api/web-api/quizzes/types', 'Quiz\ApiController@types');
Route::get('/api/web-api/quizzes', 'Quiz\ApiController@many');
Route::get('/api/web-api/quizzes/{activityId}/unlinked', 'Quiz\ApiController@unlinked');
Route::get('/api/web-api/quizzes/{id}', 'Quiz\ApiController@show');
Route::get('/api/web-api/options/{id}', 'Quiz\Option\ApiController@show');
Route::patch('/api/web-api/quizzes/{id}/sort', 'Quiz\ApiController@sort');
Route::patch('/api/web-api/quizzes/{id}', 'Quiz\ApiController@update');
Route::patch('/api/web-api/options/{id}', 'Quiz\Option\ApiController@update');
Route::delete('/api/web-api/quizzes/{id}', 'Quiz\ApiController@destroy');
Route::delete('/api/web-api/options/{id}', 'Quiz\Option\ApiController@destroy');
//Route::get('/api/web-api/sheets/filters', 'Quiz\Sheet\ApiController@filter');
Route::get('/api/web-api/papers/{id}', 'Quiz\Paper\ApiController@sheets');
Route::delete('/api/web-api/papers/{id}', 'Quiz\Paper\ApiController@destroy');

Route::post('/api/web-api/activities/shaking', 'Shaking\ActivityController@store');
Route::get('/api/web-api/activities/{id}/shaking', 'Shaking\ActivityController@show');
Route::patch('/api/web-api/activities/{id}/shaking', 'Shaking\ActivityController@update');
Route::delete('/api/web-api/shaking/{activityId}/prizes/{id}', 'Activity\PrizeBindController@unbindPrize');
Route::patch('/api/web-api/shaking/{activityId}/prizes/{id}', 'Activity\PrizeBindController@updateBoundPrize');
Route::post('/api/web-api/shaking/{activityId}/prize', 'Activity\PrizeBindController@bindPrize');
Route::get('/api/web-api/shaking/{activityId}/prizes', 'Activity\PrizeBindController@getBoundPrizes');
# Route::post('/api/web-api/shaking/{activityId}/prizes', 'Shaking\WebApiController@batchBindPrizes');

Route::post('/api/web-api/activities/roulette', 'Roulette\ActivityController@store');
Route::get('/api/web-api/activities/{id}/roulette', 'Roulette\ActivityController@show');
Route::patch('/api/web-api/activities/{id}/roulette', 'Roulette\ActivityController@update');
Route::delete('/api/web-api/roulette/{activityId}/prizes/{id}', 'Activity\PrizeBindController@unbindPrize');
Route::patch('/api/web-api/roulette/{activityId}/prizes/{id}', 'Activity\PrizeBindController@updateBoundPrize');
Route::post('/api/web-api/roulette/{activityId}/prize', 'Activity\PrizeBindController@bindPrizeWithAliasName');
Route::get('/api/web-api/roulette/{activityId}/prizes', 'Activity\PrizeBindController@getBoundPrizes');
# Route::post('/api/web-api/roulette/{activityId}/prizes', 'Roulette\WebApiController@batchBindPrizes');

Route::post('/api/web-api/activities/scratch', 'Scratch\ActivityController@store');
Route::get('/api/web-api/activities/{id}/scratch', 'Scratch\ActivityController@show');
Route::patch('/api/web-api/activities/{id}/scratch', 'Scratch\ActivityController@update');
Route::delete('/api/web-api/scratch/{activityId}/prizes/{id}', 'Activity\PrizeBindController@unbindPrize');
Route::patch('/api/web-api/scratch/{activityId}/prizes/{id}', 'Activity\PrizeBindController@updateBoundPrize');
Route::post('/api/web-api/scratch/{activityId}/prize', 'Activity\PrizeBindController@bindPrize');
Route::get('/api/web-api/scratch/{activityId}/prizes', 'Activity\PrizeBindController@getBoundPrizes');
# Route::post('/api/web-api/scratch/{activityId}/prizes', 'Scratch\WebApiController@batchBindPrizes');

Route::post('/api/web-api/activities/golden-eggs', 'GoldenEggs\ActivityController@store');
Route::get('/api/web-api/activities/{id}/golden-eggs', 'GoldenEggs\ActivityController@show');
Route::patch('/api/web-api/activities/{id}/golden-eggs', 'GoldenEggs\ActivityController@update');
Route::delete('/api/web-api/golden-eggs/{activityId}/prizes/{id}', 'Activity\PrizeBindController@unbindPrize');
Route::patch('/api/web-api/golden-eggs/{activityId}/prizes/{id}', 'Activity\PrizeBindController@updateBoundPrize');
Route::post('/api/web-api/golden-eggs/{activityId}/prize', 'Activity\PrizeBindController@bindPrize');
Route::get('/api/web-api/golden-eggs/{activityId}/prizes', 'Activity\PrizeBindController@getBoundPrizes');
# Route::post('/api/web-api/golden-eggs/{activityId}/prizes', 'GoldenEggs\WebApiController@batchBindPrizes');

Route::get('/api/web-api/prizes/available', 'Prize\WebApiController@available');
Route::post('/api/web-api/prize/import-voucher-code', 'Prize\WebApiController@importVoucherCode');

Route::post('/api/web-api/configurations/wechat', 'Configuration\Wechat\WebApiController@set');
Route::get('/api/web-api/configurations/wechat', 'Configuration\Wechat\WebApiController@getAuthorizationWechat');
Route::patch('/api/web-api/configurations/wechat', 'Configuration\Wechat\WebApiController@set');

/*
Route::post('/api/web-api/publishing/wechat/account', 'Publishing\Wechat\WebApiController@setAccount');
Route::get('/api/web-api/publishing/wechat/accounts', 'Publishing\Wechat\WebApiController@accounts');
Route::get('/api/web-api/publishing/{activityId}/published/wechat', 'Publishing\ApiController@getPublishedAccount');
*/

Route::post('/api/web-api/publishing/{activityId}', 'Publishing\WebApiController@publish');
Route::get('/api/web-api/publishing/{activityId}', 'Publishing\WebApiController@getPublished');

Route::get('/api/web-api/activities/{activities}/wechat-url', 'Activity\PublishingApiController@getWechatPublishingUrl');
Route::get('/api/web-api/activities/{activities}/app-url', 'Activity\PublishingApiController@getAppPublishingUrl');

Route::get('/api/web-api/votes/export-record', 'Web\Activity\ActivityController@exportVoteRecords');
Route::get('/api/web-api/votes/record', 'Web\Activity\ActivityController@getVoteRecords');

//活动基础通用方法
Route::post('/api/web-api/activities/activity-common', 'ActivityCommon\ActivityController@store');
Route::get('/api/web-api/activities/{id}/activity-common', 'ActivityCommon\ActivityController@show');
Route::patch('/api/web-api/activities/{id}/activity-common', 'ActivityCommon\ActivityController@update');
Route::delete('/api/web-api/activity-common/{activityId}/prizes/{id}', 'Activity\PrizeBindController@unbindPrize');
Route::patch('/api/web-api/activity-common/{activityId}/prizes/{id}', 'Activity\PrizeBindController@updateBoundPrize');
Route::post('/api/web-api/activity-common/{activityId}/prize', 'Activity\PrizeBindController@bindPrizeWithAliasName');
Route::get('/api/web-api/activity-common/{activityId}/prizes', 'Activity\PrizeBindController@getBoundPrizes');

//猜口令
Route::post('/api/web-api/activities/guess-code','GuessCode\ActivityController@store');//猜口令活动添加
Route::get('/api/web-api/activity/{id}/guess-code','GuessCode\ActivityController@show');
Route::patch('/api/web-api/activities/{id}/guess-code', 'GuessCode\ActivityController@update');
Route::delete('/api/web-api/guess-code/{activityId}/prizes/{id}', 'Activity\PrizeBindController@unbindPrize');
Route::patch('/api/web-api/guess-code/{activityId}/prizes/{id}', 'Activity\PrizeBindController@updateBoundPrize');
Route::post('/api/web-api/guess-code/{activityId}/prize', 'Activity\PrizeBindContro`ller@bindPrizeWithAliasName');
Route::get('/api/web-api/guess-code/{activityId}/prizes', 'Activity\PrizeBindController@getBoundPrizes');

//微信各商户支付证书上传
Route::post('/api/web-api/test/upload/','Activity\WechatController@loadWechatKeyPath');
Route::get('/api/web-api/test/send-redpack/','Activity\WechatController@sendRedPack');

